package com.atguigu.boot.entity;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

@ConfigurationProperties(prefix = "atguigu")
public class Student {

    private Integer stuId;
    private String stuName;
    private List<String> subjectList;

    public Integer getStuId() {
        return stuId;
    }

    public String getStuName() {
        return stuName;
    }

    public List<String> getSubjectList() {
        return subjectList;
    }

    public void setStuId(Integer stuId) {
        this.stuId = stuId;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public void setSubjectList(List<String> subjectList) {
        this.subjectList = subjectList;
    }

    @Override
    public String toString() {
        return "Student{" +
                "stuId=" + stuId +
                ", stuName='" + stuName + '\'' +
                ", subjectList=" + subjectList +
                '}';
    }

    public Student(Integer stuId, String stuName, List<String> subjectList) {
        this.stuId = stuId;
        this.stuName = stuName;
        this.subjectList = subjectList;
    }

    public Student() {
    }
}
